package com.myqm.util.gateway;

import java.sql.Timestamp;
import java.util.List;

public class ApiInfo {
	private Timestamp created_at;
	private Boolean strip_uri;
	private String id;
	private List<String> hosts;
	private String name;
	private List<String> methods;// POST GET DELETE PUT
	private Boolean http_if_terminated = false;
	private Boolean https_only = false;
	private Integer retries = 5;
	private List<String> uris; // "/qq"
	private Boolean preserve_host = false;
	private Integer upstream_connect_timeout= 60000;
	private Integer upstream_read_timeout= 60000;
	private Integer upstream_send_timeout = 60000;
	private String upstream_url;

	public Timestamp getCreated_at() {
		return created_at;
	}

	public void setCreated_at(Timestamp created_at) {
		this.created_at = created_at;
	}

	public Boolean getStrip_uri() {
		return strip_uri;
	}

	public void setStrip_uri(Boolean strip_uri) {
		this.strip_uri = strip_uri;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<String> getHosts() {
		return hosts;
	}

	public void setHosts(List<String> hosts) {
		this.hosts = hosts;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getMethods() {
		return methods;
	}

	public void setMethods(List<String> methods) {
		this.methods = methods;
	}

	public Boolean getHttp_if_terminated() {
		return http_if_terminated;
	}

	public void setHttp_if_terminated(Boolean http_if_terminated) {
		this.http_if_terminated = http_if_terminated;
	}

	public Boolean getHttps_only() {
		return https_only;
	}

	public void setHttps_only(Boolean https_only) {
		this.https_only = https_only;
	}

	public Integer getRetries() {
		return retries;
	}

	public void setRetries(Integer retries) {
		this.retries = retries;
	}

	public List<String> getUris() {
		return uris;
	}

	public void setUris(List<String> uris) {
		this.uris = uris;
	}

	public Boolean getPreserve_host() {
		return preserve_host;
	}

	public void setPreserve_host(Boolean preserve_host) {
		this.preserve_host = preserve_host;
	}

	public Integer getUpstream_connect_timeout() {
		return upstream_connect_timeout;
	}

	public void setUpstream_connect_timeout(Integer upstream_connect_timeout) {
		this.upstream_connect_timeout = upstream_connect_timeout;
	}

	public Integer getUpstream_read_timeout() {
		return upstream_read_timeout;
	}

	public void setUpstream_read_timeout(Integer upstream_read_timeout) {
		this.upstream_read_timeout = upstream_read_timeout;
	}

	public Integer getUpstream_send_timeout() {
		return upstream_send_timeout;
	}

	public void setUpstream_send_timeout(Integer upstream_send_timeout) {
		this.upstream_send_timeout = upstream_send_timeout;
	}

	public String getUpstream_url() {
		return upstream_url;
	}

	public void setUpstream_url(String upstream_url) {
		this.upstream_url = upstream_url;
	}

	@Override
	public String toString() {
		return "ApiInfo [created_at=" + created_at + ", strip_uri=" + strip_uri + ", id=" + id + ", hosts=" + hosts
				+ ", name=" + name + ", methods=" + methods + ", http_if_terminated=" + http_if_terminated
				+ ", https_only=" + https_only + ", retries=" + retries + ", uris=" + uris + ", preserve_host="
				+ preserve_host + ", upstream_connect_timeout=" + upstream_connect_timeout + ", upstream_read_timeout="
				+ upstream_read_timeout + ", upstream_send_timeout=" + upstream_send_timeout + ", upstream_url="
				+ upstream_url + "]";
	}

	
}
